package fatbaldstupid.snippets.wordcount;

import java.util.List;

public interface WordCount
{
//   Write a function to count the number of times each word appears in
//   some English text.
//   (The words are separated by white spaces.)
//
//   Then print out each word in alphabetic order (you may assume that this
//   is the same as the natural ordering of the String class), and how many
//   times it occurs in the text.
//
//   For example, if the input text is:
//
//   "arrow bull horn\tafrica \t small \t arrow thin arrow blue nile small
//   africa bile zebra jagged small edge arrow"
//
//   The print out should read:
//   africa 2
//   arrow 4
//   bile 1
//   blue 1
//   bull 1
//   edge 1
//   horn 1
//   jagged 1
//   nile 1
//   small 3
//   thin 1
//   zebra 1

   public List<String> countWord(java.lang.String text);
}
